﻿using Yapdb.Domain.Data;

namespace Yapdb.Domain.PlayerStats
{
    public interface IPlayerStat
    {
        /// <summary>
        ///  Current value of the stat.
        /// </summary>
        decimal Stat { get; }

        /// <summary>
        ///  Times the stat is calculated. Might be required for recalculation.
        /// </summary>
        int TimesCalculated { get; }

        /// <summary>
        ///  Update current stat with specific player
        /// </summary>
        /// <param name="game">Game the stat is calculated for</param>
        /// <param name="player">Player to update for</param>
        void Update(Game game, GamePlayer player);
    }
}
